// 定义路由表
import Home from './pages/Home'
import About from './pages/About'
import Test1 from './pages/Test1'
import Test2 from './pages/Test2'
export default [
  {
    path: 'home',
    element: <Home></Home>,
    children: [
      {
        path: 'test1',
        element: <Test1></Test1>,
      },
      {
        path: 'test2',
        element: <Test2></Test2>,
      },
    ],
  },
  {
    path: 'about',
    children: [
      {
        path: ':id',
        element: <About></About>,
      },
      {
        path: '',
        element: <About></About>,
      },
    ],
  },
]
